Module: Promiscuous::Publisher::Model::Ephemeral::ClassMethods
- Defined in:
- lib/promiscuous/publisher/model/ephemeral.rb
Instance Method Summary collapse
Instance Method Details
#create(attributes) ⇒ Object
71 72 73 |
# File 'lib/promiscuous/publisher/model/ephemeral.rb', line 71 def create(attributes) new(attributes).tap { |m| m.save } end |
#publish(*args) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/promiscuous/publisher/model/ephemeral.rb', line 63 def publish(*args) super published_attrs.each do |attr| # TODO do not overwrite existing methods attr_accessor attr end end |