Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults don't get inherited from a base #11

Closed
halilim opened this issue May 30, 2016 · 1 comment
Closed

Defaults don't get inherited from a base #11

halilim opened this issue May 30, 2016 · 1 comment

Comments

@halilim
Copy link

halilim commented May 30, 2016

Defaults don't get inherited from a base:

class ApplicationTexter < Textris::Base
  default from: 'Acme Corp'
end
class SomethingTexter < ApplicationTexter
end

ApplicationTexter.with_defaults({}) # => {:from=>"Acme Corp"}
SomethingTexter.with_defaults({}) # => {}

I guess class_attribute can be used similar to how ActionView::Layouts implements layout? _layout class attribute definition, layout method

@karolsluszniak
Copy link
Contributor

👍

ronin added a commit that referenced this issue Aug 28, 2016
@ronin ronin closed this as completed in #24 Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants